package com.miyu.system.controller.jpa;

import com.miyu.system.service.jpa.JpacommentService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("jpa")
@RequiredArgsConstructor
public class JpaCommentController {

    private  final JpacommentService jpacommentService;
    @RequestMapping("alterAllTableAndColumn")
    public String alterAllTableAndColumn() {
        jpacommentService.alterAllTableAndColumn();
        return "success";
    }
}
